﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ShowWaitingApprove
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>显示待审核的条目</h2>
<% if (ViewData["ArticlesToBeApproved"] == null ||
      (ViewData["ArticlesToBeApproved"] as Dictionary<int, KnowledgeEntity.Article>).Count <= 0)
   {%>
      <p class="error">暂时没有需要审核的条目。</p>
 <%}
   else
   {
      Dictionary<int, KnowledgeEntity.Article> articlesToBeApproved = ViewData["ArticlesToBeApproved"] as Dictionary<int, KnowledgeEntity.Article>;
      foreach (KeyValuePair<int, KnowledgeEntity.Article> articleItem in articlesToBeApproved)
      {
%>
         <%=Html.ActionLink(articleItem.Value.Title, string.Format("ShowApprovingArticle/{0}",articleItem.Value.ArticleID), "Article") %>
<%    }
   } %>
</asp:Content>
